home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7036 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: phoenix.owl.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <4ju8n4$8aq@marti.uji.es> <3162F136.5460@bailey.com>
  4. From: "Frank Wille" <frank@phoenix.owl.de>
  5. Date: Sat, 06 Apr 1996 21:37:40 +0200
  6. X-NewsReader: IntuiNews 1.3b Beta 3 (5.11.95)
  7. Subject: Re: New programmer wants help
  8. Message-ID: <42116755@phoenix.owl.de>
  9. Organization: Phantasm
  10.  
  11. Robert Kilbertus wrote on Wed, 03 Apr 1996 16:44:22 -0500
  12. about "Re: New programmer wants help" :
  13.  
  14.  
  15. RK> Acereda Macia Jorge wrote:
  16. RK> > 
  17. RK> > If you only need some example source, I think there're some examples
  18. RK> > taken from the Rom Kernal Manuals in Aminet. It's probably called
  19. RK> > *RKM*.lha :-) Look for it in the INDEX. There should be some
  20. RK> > examples dealing with messages and ports.
  21. RK> > 
  22. RK> 
  23. RK> There at least two examples of multitasking in Aminet that I know of.
  24. RK> They are in:
  25. RK> 
  26. RK> dev/src/MultiTasking.lha
  27. RK> dev/src/RKMcompanion.lha
  28. RK> 
  29. RK> If you are by chance using Manx C, compile and link the above examples
  30. RK> with the large-code and large-data options.  Otherwise, they will not
  31. RK> execute properly.  The default small code/data model used by Manx C
  32. RK> uses the A4 register to store the address of an intermediate jump
  33. RK> table. Spawned subtasks will not pick up this address without adding
  34.  
  35. Certainly, there could be also a jump table in this area. It will
  36. be usually generated by the linker, when 16-bit/pc-relative jumps
  37. are out of range (automatic link vectors, ALV).
  38.  
  39. But A4 always points to the the beginning or 32766 bytes behind the
  40. start address of the coalesced small data sections.
  41.  
  42.  
  43. RK> some extra assembly language code.  I just thought I'd mention this
  44. RK> because it burned me bad a few years ago.
  45.  
  46. The first command in such a function should be geta4(). It restores
  47. the value of the A4 register.
  48.  
  49.  
  50. -- _
  51. _ // Frank      EMail: frank@phoenix.owl.de
  52. \X/             IRC:   Phx @ #amiga(ger)
  53.  
  54.